<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('转帐订单列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <p>转帐订单：</p>
                                <input type="text" name="orderNo"/>
                            </li>
                            <li>
                                <p>openid：</p>
                                <input type="text" name="openid"/>
                            </li>
                            <li>
                                <p>微信单号：</p>
                                <input type="text" name="paymentNo"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="yingyu:transferorder:export">
                    <i class="fa fa-download"></i> 导出
                 </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('yingyu:transferorder:edit')}]];
        var removeFlag = [[${@permission.hasPermi('yingyu:transferorder:remove')}]];
        var prefix = ctx + "yingyu/transferorder";

        $(function() {
            var options = {
            	sortName: "createTime",
     		    sortOrder: "desc",
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "转帐订单",
                columns: [{
                    checkbox: true
                },
                {
                    field : 'id', 
                    title : 'id',
                    visible: false
                },
                {
                    field : 'orderNo', 
                    title : '转帐订单'
                },
                {
                    field : 'nonceStr', 
                    title : '随机串',
                    visible: false
                },
                {
                    field : 'kkid', 
                    title : 'kkid'
                },
                {
                    field : 'nickname', 
                    title : '微信',
                    visible: true
                },
                {
                    field : 'ip', 
                    title : 'ip'
                },
                {
                    field : 'yuan', 
                    title : '转帐金额(元)'
                },
                {
                    field : 'paymentNo', 
                    title : '微信付款单号'
                },
                {
                    field : 'paymentTime', 
                    title : '微信付款时间'
                },
                {
                    field : 'resultCode', 
                    title : '微信result_code'
                },
                {
                    field : 'errCode', 
                    title : '微信错误码'
                },
                {
                    field : 'errCodeDesc', 
                    title : '微信错误描述'
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>